from PyQt6.QtWidgets import QApplication, QWidget, QLabel

import sys

# 创建一个应用
app = QApplication(sys.argv)

windows = QWidget()
windows.show()
windows.setWindowTitle("fenmou")
windows.resize(400,300)

lable = QLabel()
lable.setText("按钮")
lable.resize(100,100)
lable.setStyleSheet("background-color: rgb(0, 255, 255);")
lable.setParent(windows)
lable.show()
# app.exec()
sys.exit(app.exec())
